package com.outfood.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

@Data
@Table(name = "food_user")
public class User implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@Id
	@KeySql(useGeneratedKeys = true)
	private Long id;

	/**
	 * 用户昵称
	 */
	private String nickName;

	/**
	 * 用户头像
	 */
	private String headImg;


	/**
	 * 推荐人ID
	 */
	private Long referenceId;

	/**
	 * 手机号
	 */
	private String mobile;

	/**
	 * 小程序的openid
	 */
	private String openId;

	/**
	 * 公众号OPENid
	 */
	private String gzhOpenId;

	/**
	 * create_user
	 */
	private String createUser;

	/**
	 * create_date
	 */
	private Date createDate;

	/**
	 * modify_user
	 */
	private String modifyUser;

	/**
	 * modify_date
	 */
	private Date modifyDate;

	/**
	 * state
	 */
	private String state;

}
